<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../../inc/global.jsp" 
%><compress:html enabled="true" removeComments="false" compressJavaScript="true" yuiJsDisableOptimizations="true">
<!doctype html>
<html>
<head>
<title>${adminGlobalConfig.name}</title>
<%@include file="../head.jsp" %>
<script type="text/javascript"> 
function doSubmit() {
	$('form').submit(function(){
		$("#submit").attr('disabled', 'disabled');
	});
}
$(document).ready(function() {
	doSubmit();
});
</script> 
</head>
<body>
<div class="wrapper">
<%@include file="../header.jsp" %>
<div class="body">
<div class="form">
<form:form commandName="form" method="POST" action="/a/batch/modify">
<table>
<tr>
<th><fmt:message key="message.brand.name" /></th>
<td>
${brand.name}
<form:hidden path="brandId"/>
</td>
</tr>
<tr>
<th><fmt:message key="message.category.name" /></th>
<td>
${category.name}
<form:hidden path="categoryId"/>
</td>
</tr>
<tr>
<th><fmt:message key="message.goods.name" /></th>
<td>
${goods.name}
<form:hidden path="goodsId"/>
</td>
</tr>
<tr>
<th><fmt:message key="message.purchase.price" /></th>
<td><form:input path="purchase" cssClass="input" value="${form.purchase}" /></td>
</tr>
<tr>
<th><fmt:message key="message.discountRate" /></th>
<td><form:input path="discountRate" cssClass="input" size="10" value="${form.discountRate}" />% 百分比计算</td>
</tr>
<tr>
<th><fmt:message key="message.cost" /></th>
<td><form:input path="cost" cssClass="input" value="${form.cost}"/></td>
</tr>
<tr>
<th><fmt:message key="message.trade.price" /></th>
<td><form:input path="trade" cssClass="input" value="${form.trade}"/></td>
</tr>
<tr>
<th><fmt:message key="message.memo" /></th>
<td>
<form:textarea path="memo"/>
</td>
</tr>
<tr>
<tr>
<th>入库时间</th>
<td>
<fmt:formatDate pattern="yy-MM-dd hh:mm:ss" value="${batch.addTime}" />
</td>
</tr>
<tr>
<th>
</th>
<td>
<form:errors cssClass="error" path="*" element="span">
<c:forEach var="msg" items="${messages}"><span class="error">${msg}</span></c:forEach>
<br/>
</form:errors>
<form:hidden path="id"/>
<input type="hidden" name="backURL" id="backURL" value="${backURL}" />
<input type="submit" name="submit" id="submit" value='<fmt:message key="message.save.sure" />' />
</td>
</tr>
</table>
</form:form>
</div>
<!--  -->
</div>
</div>
</body>
</html>
</compress:html>